﻿using System;
using System.Windows.Forms;

namespace Medicalsystem.MCP.FormDesigner
{
    public partial class Form_AddModel : BaseForm
    {
        public Form_AddModel()
        {
            InitializeComponent();

            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;
        }

        public string FormName
        {
            get { return this.textBox_Name.Text; }
        }

        private void button_OK_Click(object sender, EventArgs e)
        {
            if (this.Text.Trim().Length == 0)
            {
                MessageBox.Show("请输入名称");
            }
            else
            {
                this.DialogResult = DialogResult.OK;
            }
        }

        private void button_Cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}